projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ce4bf3
)
Revert "* src/comp.c (Fcomp__register_subr): Remove code duplication using Fdefalias."
author
Andrea Corallo
<akrl@sdf.org>
Mon, 29 Jun 2020 15:26:29 +0000
(17:26 +0200)
committer
Andrea Corallo
<akrl@sdf.org>
Mon, 29 Jun 2020 15:26:29 +0000
(17:26 +0200)
This reverts commit
6c7f615ae59b636efe5012f761a25acfd956480d
.
src/comp.c
patch
|
blob
|
history
diff --git
a/src/comp.c
b/src/comp.c
index 28f10bed6d105da941ead8439eb040ba332fd177..2464b58dad7618e0bb5608f7cd1b253b19ea3641 100644
(file)
--- a/
src/comp.c
+++ b/
src/comp.c
@@
-4787,7
+4787,17
@@
DEFUN ("comp--register-subr", Fcomp__register_subr, Scomp__register_subr,
Lisp_Object tem =
make_subr (SYMBOL_NAME (name), minarg, maxarg, c_name, doc_idx, intspec,
comp_u);
- Fdefalias (name, tem, Qnil);
+
+ LOADHIST_ATTACH (Fcons (Qdefun, name));
+
+ { /* Handle automatic advice activation (bug#42038).
+ See `defalias'. */
+ Lisp_Object hook = Fget (name, Qdefalias_fset_function);
+ if (!NILP (hook))
+ call2 (hook, name, tem);
+ else
+ Ffset (name, tem);
+ }
return tem;
}